package com.example.bes017.websocket.demo.service.impl;

import com.example.bes017.websocket.demo.DTO.UserReqDto;
import com.example.bes017.websocket.demo.service.UserService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;

@WebService(serviceName = "userService",
        endpointInterface = "com.example.bes017.websocket.demo.service.UserService")
@Component
public class UserServiceImpl implements UserService {
    public int addUser(String email, String username, String password) {
        System.out.println("注册用户:"+email);
        return 1;
    }

    public int updateUser(UserReqDto userReqDto) {
        return 1;
    }
}